package com.test.cities.po;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

@TableName("TEST_BOOKS")
@KeySequence("EXT_DEFAULT_SEQ")
public class Book implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type=IdType.INPUT)
    private Long id;
    @TableField("code")
    private String code;
    @TableField("name")
    private String name;
    @TableField("author")
    private String author;
    @TableField("publishDate")
    private LocalDate publishDate;
    @TableField("createTime")
    private LocalDate createTime;
    @TableField("updateTime")
    private LocalDate updateTime;


    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    public LocalDate getPublishDate() {
        return publishDate;
    }
    public void setPublishDate(LocalDate publishDate) {
        this.publishDate = publishDate;
    }
    public LocalDate getCreateTime() {
        return createTime;
    }
    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }
    public LocalDate getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }
    @Override
    public String toString() {
        return "Book [id=" + id + ", code=" + code + ", name=" + name + ", author=" + author + ", publishDate="
                + publishDate + ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
    }

}
